<!DOCTYPE html>
<html	xmlns="http://www.w3c.org/1999/xhtml"
		xmlns:h="http://xmlns.jcp.org/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:fn="http://java.sun.com/jsp/jstl/functions"
		xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>		
	<p:panelGrid style="width:500px;" >
		<p:row>
			<p:column style="width:120px;">
				<h:outputText value="File Name:" />
			</p:column>
			<p:column>
				<p:inputText value="#{generateEmailFileBean.generateFilePath}" style="width:80%;"/>
			</p:column>
		</p:row>
		<p:row>
			<p:column style="width:120px;">
				<h:outputText value="Size (M):" />
			</p:column>
			<p:column>
				<p:inputText	value="#{generateEmailFileBean.generateFileSizInM}" style="width:80%;"
								onkeyup="$(this).val($(this).val().replace(/[^0-9]/g, ''));"/>
			</p:column>
		</p:row>
		<p:row>
			<p:column style="width:120px;">
				<h:outputText value="Compress: " />
			</p:column>
			<p:column>
				<p:selectBooleanCheckbox value="#{generateEmailFileBean.compress}">
					<p:ajax/> 
				</p:selectBooleanCheckbox>
			</p:column>
		</p:row>
		<p:row>
			<p:column colspan="2" style="text-align:center;">
				<p:commandButton	value="Generate"  
									action="#{generateEmailFileBean.generateFakeEmailFile}" 
									styleClass="ui-priority-primary" global="true"/>
			</p:column>
		</p:row>
	</p:panelGrid>
</h:body>
</html>